import request from '@/utils/request';

// 行政领取列表
export const receiveList = params => request({
    url: '/business/receive/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 行政领取
export const receiveAdd = params => request({
    url: '/business/receive/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 行政归还
export const receiveUpdate = params => request({
    url: '/business/receive/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 行政领取APP列表
export const buycardApplist = params => request({
    url: '/business/employee/buycardGiftpick/applist',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 行政领取导出
export const buycardExport = params => request({
    url: '/business/receive/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 行政领取详情
export const buycardGet = params => request({
    url: '/business/employee/buycardGiftpick/get',
    method: 'GET',
    params
});
// 行政领取获取赠品下拉列表
export const buyGetGiftList = params => request({
    url: '/presented/pullDrugPresented',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 领取/退回操作记录列表
export const receiveLogList = params => request({
    url: '/business/receive/log/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 返回剩余的待退回赠品列表和数量
export const getBackItems = params => request({
    url: '/business/employee/buycardGiftpick/getBackItems',
    method: 'POST',
    params
}).then(res => {
    return res;
});
// 查询领取的赠品列表;
export const listGiftPickRecord = params => request({
    url: '/business/employee/buycardGiftpick/listGiftPickRecord',
    method: 'POST',
    params
}).then(res => {
    return res;
});
